package com.hqyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("department")
public class Department extends MyPage implements Serializable {
    //主键
    @TableId(value = "department_id",type = IdType.AUTO)
    private Integer departmentId;

    //TableField 非主键的注解 ，定义的属性和列名的映射关系
    @TableField(value = "department_name")
    private String departmentName;

    @TableField(value = "department_head")
    private String departmentHead;

}